﻿// (c) Copyright Microsoft Corporation.
// This source is subject to [###LICENSE_NAME###].
// Please see [###LICENSE_LINK###] for details.
// All other rights reserved.

using System;

namespace EnsureWeb.Controls
{
    /// <summary>
    /// Event args used when Display date changed.
    /// </summary>
    public class DisplayDateChangedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets the old start date value.
        /// </summary>
        public DateTime OldDateStart { get; set; }

        /// <summary>
        /// Gets or sets the old end date value.
        /// </summary>
        public DateTime OldDateEnd { get; set; }

        /// <summary>
        /// Gets or sets the new start date value.
        /// </summary>
        public DateTime NewDateStart { get; set; }

        /// <summary>
        /// Gets or sets the old end date value.
        /// </summary>
        public DateTime NewDateEnd { get; set; }

        /// <summary>
        /// Initializes a new instances of the DisplayDateChangedEventArgs class.
        /// </summary>
        /// <param name="newDateStart">Start of new date range.</param>
        /// <param name="newDateEnd">End of new date range.</param>
        public DisplayDateChangedEventArgs(DateTime oldDateStart, DateTime oldDateEnd, DateTime newDateStart, DateTime newDateEnd)
        {
            OldDateStart = oldDateStart;
            OldDateEnd = oldDateEnd;
            NewDateStart = newDateStart;
            NewDateEnd = newDateEnd;
        }
    }
}
